import mcpi.minecraft as minecraft
import mcpi.block as block
mc = minecraft.Minecraft.create()
x, y, z = mc.player.getTilePos()
def farmland(x,y,z):
    mc.setBlocks(x-5,y,z-5,x+5,y,z+5,block.WOOD)
    mc.setBlocks(x-4,y,z-4,x+4,y,z+4,block.FARMLAND)
    mc.setBlocks(x-4,y,z-4,x-4,y,z+4,block.WATER)
    mc.setBlocks(x+4,y,z-4,x+4,y,z+4,block.WATER)
    mc.setBlock(x,y,z,block.WOOD)
farmland(x,y,z)
